package IMIC.DOTHEVINH.OOP.EXERCISES.LEVEL02.EXP1;

public class Controllers {
	private TriangleEntity triangleEntity;
	private Models model;

	public Controllers() {
		model = new Models();
		triangleEntity = new TriangleEntity();
	}

	public double CalculateArea(TriangleEntity triangleEntity) {
		return model.Area(triangleEntity);

	}

	public double CalculatePerimeter(TriangleEntity triangleEntity) {
		return model.Perimeter(triangleEntity);

	}

}
